#include <cs50.h>
#include <stdio.h>

int main() {
	int n = 0;
	do {
		printf("A number between 0 and 32768 please: ");
		n = GetInt();
	} while (n <= 0 || n > 32768);

	do {
		printf("%d,", n % 10);
		n = n / 10;
	} while (n > 10);

	printf("%d\n", n);

	//printf("%d\n", n % 10);
}
